﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WebFormDetails.aspx.cs" Inherits="TravelAgency.WebFormDetails" %>
<asp:Content ID="ContentHead" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="ContentBody" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <div id="DivInfo" runat="server">
        <asp:Repeater ID="RepeaterTourDetails" runat="server">
            <ItemTemplate>
                <b>Destination:</b> <%# Eval("Destination.Name") %> <br />
                <b>Starts: </b> <%# Eval("StartDate", "{0:dd/MM/yyyy}") %> <br />
                <b>Ends: </b> <%# Eval("EndDate", "{0:dd/MM/yyyy}")%> <br />
                <b>Price: </b> <%# Eval("Price","{0:c}") %> <br />
                <b>Description: </b> <%# Eval("Description") %> <br />
                <b>Transportation info: </b> <%# Eval("Transportation.Description") %> <br />
                <b>Board info: </b> <%# Eval("Board.Description") %> <br />
                <b>Reference number: </b> <%# Eval("Reference") %> <br />            
            </ItemTemplate>                                        
        </asp:Repeater>
        <b>Hotel facilities: </b> <br />
        <asp:ListBox runat="server" ID="HotelFacilities">                
        </asp:ListBox>
    </div>
    
    <asp:Button runat="server" ID="ButtonReservation" Text="Make reservation" onclick="ButtonReservation_Click" /> 
    <asp:Button runat="server" PostBackUrl="~/WebFormTours.aspx" Text="Back" />
</asp:Content>
